package com.msb.mallcart.fegin;

import com.msb.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Auther: xixifeng
 * @Date: 2022/11/10 - 11 - 10 - 19:03
 * @Description: com.msb.mallcart.fegin
 * @version: 1.0
 */
@FeignClient("mall-product")
public interface productFeignService {

    @RequestMapping("/product/skuinfo/info/{skuId}")
    // @RequiresPermissions("product:skuinfo:info")
    public R info(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skuinfo/saleAttrs/{skuId}")
    public List<String> getSkuSaleAttrs(@PathVariable("skuId") Long skuId);
}

